package com.cf.core.spirit;

import com.cf.EventHandler;
import com.cf.core.stage.Stage;

/**
 * game-server-Spiriter
 * 游戏任务精灵
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/4/27 下午 05:35
 */
public abstract class Spiriter<T> implements EventHandler {

    /**
     * 当前精灵所在的场景
     */
    private Stage stage;

    /**
     * 获取精灵的状态
     *
     * @return
     */
    public T getSpiritStatue() {
        //当前是个空实现
        return null;
    }

    public Spiriter(Stage stage) {
        this.stage = stage;
    }

    public Stage getStage() {
        return stage;
    }

    public void setStage(Stage stage) {
        this.stage = stage;
    }

    public abstract void clean();


    public abstract Integer getId();
}
